package com.test;

import java.util.Scanner;

public class FriendlyReminder {
    boolean state = true;

    public void start() {

        Scanner sc = new Scanner(System.in);


        while (state) {
            System.out.println("----------------学生管理系统----------------");
            System.out.println("1.添加学生");
            System.out.println("2.查看学生");
            System.out.println("3.修改学生");
            System.out.println("4.删除学生");
            System.out.println("5.退出系统");
            System.out.println("----------------请您选择编号----------------");

            int num = sc.nextInt();
            switch (num) {
                case 1:
                    //添加学生
                    addStudents();
                    break;
                case 2:
                    //查看学生
                    viewStudents();
                    break;
                case 3:
                    //修改学生
                    modifyStudents();
                    break;
                case 4:
                    //删除学生
                    deleteStudent();
                    break;
                case 5:
                    exitTheSystem();
                    break;
                default:
                    System.out.println("你输入的数字有误，请你重新输入");
                    break;
            }
        }
    }

    //退出系统
    private void exitTheSystem() {
        state = false;
        System.out.println("欢迎下次再来");
    }

    //删除学生方法
    public void deleteStudent() {
    }

    //修改学生方法
    public void modifyStudents() {
    }

    //查看学生方法
    public void viewStudents() {

    }

    //添加学生方法
    public void addStudents() {

    }
}
